﻿namespace DotRas
{
    using pptpclient.Properties;
    using System;
    using System.ComponentModel;

    [AttributeUsage(AttributeTargets.All)]
    internal sealed class SRCategoryAttribute : CategoryAttribute
    {
        public SRCategoryAttribute(string resource) : base(resource)
        {
        }

        protected override string GetLocalizedString(string value)
        {
            string str = Resources.ResourceManager.GetString(value);
            if (string.IsNullOrEmpty(str))
            {
                str = value;
            }
            return str;
        }
    }
}

